package com.qeeyou.apps.android.craftsman.activity.me;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;

import com.qeeyou.apps.android.craftsman.R;

public class PayPasswordActivity extends Activity {

    private ImageView btnBack;
    private EditText editUsername;
    private EditText editVerifyCode;
    private Button btnVerifyCode;
    private EditText editPassword;
    private EditText editRetryPassword;
    private Button btnReset;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pay_password);

        setView();

        setEvent();
    }

    private void setView() {
        btnBack = (ImageView) this.findViewById(R.id.btnBack4PayPassword);
        editUsername = (EditText) this.findViewById(R.id.editUsername4PayPassword);
        editVerifyCode = (EditText) this.findViewById(R.id.editVerifyCode4PayPassword);
        btnVerifyCode = (Button) this.findViewById(R.id.btnVerifyCode4PayPassword);
        editPassword = (EditText) this.findViewById(R.id.editPassword4PayPassword);
        editRetryPassword = (EditText) this.findViewById(R.id.editRetryPassword4PayPassword);
        btnReset = (Button) this.findViewById(R.id.btnReset4PayPassword);

    }

    private void setEvent() {

        btnBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                PayPasswordActivity.this.finish();
            }
        });

        btnReset.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(PayPasswordActivity.this, "重置密码按钮点击事件", Toast.LENGTH_SHORT).show();
            }
        });

        btnVerifyCode.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(PayPasswordActivity.this, "获取验证码按钮点击事件", Toast.LENGTH_SHORT).show();
            }
        });

    }
}
